home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / ColorSync SDK / Sample Code / CSDemo 2.1 / ShellSources / gxGlobals.c < prev    next >
Encoding:
Text File  |  1997-06-13  |  2.0 KB  |  54 lines  |  [TEXT/CWIE]

  1. // Simple framework for Macintosh sample code
  2. //
  3. // David Hayward and Nick Thompson 
  4. // Developer Technical Support
  5. // AppleLink: DEVSUPPORT
  6. //
  7. // Copyrite 1995, Apple Computer,Inc
  8. //
  9. // This file contains the QuickDraw GX related globals for the framework
  10. // These are in a seperate file to attempt to isolate the GX code from the 
  11. // classic code.
  12. // 
  13. // 10/17/94        nick    first cut
  14. // 11/16/94        david    changed global variable name gGXIsInstalled to gQDGX_available
  15. //                        changed global variable name gIsQuickDrawGXDebuggingInstalled to gQDGXDebug_available
  16.  
  17.  
  18. #include "gxGlobals.h"
  19.  
  20.  
  21. /**\
  22. |**| ==============================================================================
  23. |**| PUBLIC DEFINES
  24. |**| ==============================================================================
  25. \**/
  26.  
  27. // If "QDGXDebugging" is defined, graphics library errors and notices will be posted.
  28. // This functionality will only work with the "debugging" version of QuickDraw GX.
  29. // If the debugging version is not installed, nothing bad will happen, but these
  30. // functions will not work. 
  31. #define    QDGXDebugging      1;
  32.  
  33. // If "QDGXValidation" is defined you will receive run-time validation.
  34. #define QDGXValidation    1;
  35.  
  36. /**\
  37. |**| ==============================================================================
  38. |**| PUBLIC GLOBALS
  39. |**| ==============================================================================
  40. \**/
  41.  
  42. gxGraphicsClient    gQDGXClient = nil;            // this is the client reference for this app
  43.  
  44. // gGraphicsHeapSize sets the size of the graphics heap created by calling the
  45. // GXNewGraphicsClient routine in main() within QuickDraw GX shell.c.  You can determine
  46. // the amount of graphics heap required by using GraphicsBug.  I'm giving it 600K,
  47. // since we need abunch if we have several windows open.
  48. long                gQDGXGraphicsHeapSize = 600;
  49.  
  50. // gOurPrintingOverrideUPP is a universal proc pointer for our printing event
  51. // override.  This is so that our override can be native PowerPC code if necessary.
  52. GXPrintingEventUPP    gQDGXPrintingEventUPP = nil;
  53.  
  54. gxEditMenuRecord    gQDGXEditMenuRec ;